import Home from '../pages/home/Home'
import About from '../pages/about/About'
import Life from '../pages/life/Life'
import Shop from '../pages/shop/Shop'
import Layout from '../pages/Layout'
import City from '../pages/city/City'
import Community from '../pages/community/Community'
import Friend from '../pages/houseFriend/Friend'
import Search from '../pages/search/Search'
import detail from '../pages/houseDetail/HouseDetail'
import HouseDetail from '../pages/houseDetail/HouseDetail'
import Login from '../pages/login/Login'
import Comment from '../pages/comment/Comment'

//配置路由
const routes =[
   {
        path:'/',
        element:<Layout/>,
        children:[
            {
                path:'/',
                element:<Home/>
            },
            {
                path:'/about',
                element:<About/>
            },
            {
                path:'/life',
                element:<Life/>
            },
            {
                path:'/shop',
                element:<Shop/>
            } 
        ]
   },
   {
    path:'/city',
    element:<City/>
   },
   {
    path:'/shequ',
    element:<Community/>
   },
   {
    path:'/friend',
    element:<Friend/>
   },
   {
    path:'/search',
    element:<Search/>
   },
   {
    path:'/detail/:id',
    element:<HouseDetail/>
   },
   {
    path:'/login',
    element:<Login/>
   },
   {
    path:'/comment',
    element:<Comment/>
   }
]

export default routes